package com.cn.demo.springboot.redis.util;

import java.util.Date;
import java.util.Map;

/**
 * 
 * @author admin
 *
 */
public interface IRedisClientUtil {
	public static final String PREFIX = "cache:data:";
	public void setString(@RedisClientUtilAnnotation String key, String value);
	public String getString(@RedisClientUtilAnnotation String key);
	public Map<String, String> getMap(@RedisClientUtilAnnotation String key);
	public void setMap(@RedisClientUtilAnnotation String key, Map<String, String> m);
	public void del(@RedisClientUtilAnnotation String key);
	public boolean expireAt(@RedisClientUtilAnnotation String key, Date date);
	public boolean expire(@RedisClientUtilAnnotation String key, long timeout);
}
